<?php
Doo::loadCore('db/DooModel');

class FrbcmsPageBase extends DooModel
{

    /**
     * @var int Max length is 11.
     */
    public $pge_id;

    /**
     * @var varchar Max length is 150.
     */
    public $pge_name;

    /**
     * @var varchar Max length is 150.
     */
    public $pge_real_name;

    public $_table = 'frbcms_page';
    public $_primarykey = 'pge_id';
    public $_fields = array('pge_id','pge_name','pge_real_name');

    public function getVRules() {
        return array(
                'pge_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'optional' ),
                ),

                'pge_name' => array(
                        array( 'maxlength', 150 ),
                        array( 'notnull' ),
                ),

                'pge_real_name' => array(
                        array( 'maxlength', 150 ),
                        array( 'notnull' ),
                )
            );
    }

}